﻿@{
    ViewBag.Title = "EntryRescue";
    Layout = "~/Views/Shared/_BootstrapUI.cshtml";
}
<link href="~/Content/dataTable/dtConfig.css" rel="stylesheet" />
<link href="~/Content/datetimePicker/datetimePicker.css" rel="stylesheet" />
<script src="~/Content/datetimePicker/moment.js"></script>
<script src="~/Scripts/ajaxfileupload.js"></script>

<div class="panel panel-default mb0">
    <div class="panel-body bb panel_inquire">
        <form id="form_inquire" role="form" class="form-inline">
            <div class="form-group">
                <div id="datetimepicker_st" class="input-group date">
                    <input id="date_st" type="text" class="form-control" placeholder="录入创建开始日期" style="width: 150px;">
                    <span class="input-group-addon">
                        <span class="fa fa-calendar"></span>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <div id="datetimepicker_ed" class="input-group date">
                    <input id="date_ed" type="text" class="form-control" placeholder="录入创建结束日期" style="width: 150px;">
                    <span class="input-group-addon">
                        <span class="fa fa-calendar"></span>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <input id="query" type="text" class="form-control" placeholder="关键字" style="width: 110px;">
            </div>
            <div class="form-group">
                <select id="carstate" type="text" placeholder="状态" class="form-control  input-sm input-sm" required="required" data-parsley-error-message="...">

                    <option value=""></option>
                    <option value="0">待激活</option>
                    <option value="1">已激活</option>
                    <option value="2">已失效</option>

                </select>
            </div>
            <button id="btnInquire" type="button" class="btn btn-primary">查&nbsp;询</button>
        </form>
    </div>
    <input type="hidden" id="btn_val" />
    <div id="btnOp" class="panel-heading">
    </div>
    <div class="panel-body bt panel-body-dt-normal">
        <div class="table-responsive">
            <table id="dt_admin" class="table table-striped nowrap"></table>
        </div>
    </div>
</div>


<div id="InsuranceAccountAddModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabelLarge" aria-hidden="true" class="modal fade">
    <div class="modal-dialog" style="width: 40%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" data-dismiss="modal" aria-label="Close" class="close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 id="title1" class="modal-title">批量生成救援卡</h4>
            </div>
            <div class="modal-body">
                <form id="form" role="form" class="form-horizontal" data-parsley-validate="" novalidate="">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">卡类型</label>
                                <div class="col-md-8">
                                    <select id="cardtype" type="text" placeholder="卡类型" class="form-control  input-sm input-sm" required="required">
                                        @{
                                            var bll = new FZKJ.BLL.sys_dict();
                                            var list = bll.GetModelList(" value='cardtype'");
                                            if (list.Count > 0)
                                            {
                                                var list1 = bll.GetModelList(" pid=" + list[0].id);
                                                foreach (var item in list1)
                                                {
                                                    <option value="@item.id">@item.label</option>
                                                }
                                            }
                                        }
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">密码</label>
                                <div class="col-md-8">
                                    <input id="origin1" type="password" placeholder="密码" class="form-control  input-sm  input-sm" required="required" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">有效期起</label>
                                <div class="col-md-8">
                                    <div id="datetimepicker_start" class="input-group date">
                                        <input id="starttime" type="text" class="form-control  input-sm" placeholder="有效期起">
                                        <span class="input-group-addon">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">有效期止</label>
                                <div class="col-md-8">
                                    <div id="datetimepicker_end" class="input-group date">
                                        <input id="endtime" type="text" class="form-control  input-sm" placeholder="有效期止">
                                        <span class="input-group-addon">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="col-md-4 control-label">卡号区间</label>
                                <div class="col-md-8">
                                    <input id="startcard" type="text" placeholder="开始卡号" class="form-control  input-sm  input-sm" required="required" value="0" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="col-md-4 control-label"></label>
                                <div class="col-md-8">
                                    <input id="endcard" type="text" placeholder="结束卡号" class="form-control  input-sm  input-sm" required="required" value="1000" />
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                <button id="btnCardSave" type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>






<div id="UpdateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabelLarge" aria-hidden="true" class="modal fade">
    <div class="modal-dialog" style="width: 40%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" data-dismiss="modal" aria-label="Close" class="close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 id="title" class="modal-title">生成卡号</h4>
            </div>
            <div class="modal-body">
                <form id="form" role="form" class="form-horizontal" data-parsley-validate="" novalidate="">
                    <input id="id" hidden="hidden" />
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">卡类型</label>
                                <div class="col-md-8">
                                    <select id="cardtype1" type="text" placeholder="卡类型" class="form-control  input-sm input-sm" required="required">
                                        @{
                                            list = bll.GetModelList(" value='cardtype'");
                                            if (list.Count > 0)
                                            {
                                                var list1 = bll.GetModelList(" pid=" + list[0].id);
                                                foreach (var item in list1)
                                                {
                                                    <option value="@item.id">@item.label</option>
                                                }
                                            }
                                        }
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">卡号</label>
                                <div class="col-md-8">
                                    <input id="cardno" type="text" placeholder="卡号" class="form-control  input-sm  input-sm" required="required" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">密码</label>
                                <div class="col-md-8">
                                    <input id="origin" type="password" placeholder="密码" class="form-control  input-sm  input-sm" required="required" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">有效期起</label>
                                <div class="col-md-8">
                                    <div id="datetimepicker_start1" class="input-group date">
                                        <input id="starttime1" type="text" class="form-control  input-sm" placeholder="有效期起">
                                        <span class="input-group-addon">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">有效期止</label>
                                <div class="col-md-8">
                                    <div id="datetimepicker_end1" class="input-group date">
                                        <input id="endtime1" type="text" class="form-control  input-sm" placeholder="有效期止">
                                        <span class="input-group-addon">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">状态</label>
                                <div class="col-md-8">
                                    <select id="activationstate" type="text" placeholder="开始卡号" class="form-control  input-sm  input-sm" required="required">
                                        <option value="0">未激活</option>
                                        <option value="1">不可用</option>
                                        <option value="2">已激活</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                <button id="btnCardUpdate" type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>
<script src="~/Content/datetimePicker/moment.js"></script>
<script src="~/Content/datetimePicker/datetimePicker.js"></script>
<script src="~/Pscripts/RescueCard/EntryRescue.js?v=@DateTime.Now.ToString("yyyyMMddHHmmssfff")"></script>
